@extends('layouts.admin')
@section('pageTitle', '用户登录')
@section('content')
    @component('components.web.sidemenu')@endcomponent
    <div class="main-panel">
        <nav class="navbar navbar-default">
            <div class="container-fluid">
                <div class="navbar-minimize">
                    <button id="minimizeSidebar" class="btn btn-warning btn-fill btn-round btn-icon">
                        <i class="fa fa-ellipsis-v visible-on-sidebar-regular"></i>
                        <i class="fa fa-navicon visible-on-sidebar-mini"></i>
                    </button>
                </div>
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">Dashboard PRO</a>
                </div>
                <div class="collapse navbar-collapse">

                    <form class="navbar-form navbar-left navbar-search-form" role="search">
                        <div class="input-group">
                            <span class="input-group-addon"><i class="fa fa-search"></i></span>
                            <input type="text" value="" class="form-control" placeholder="Search...">
                        </div>
                    </form>

                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a href="charts.html">
                                <i class="fa fa-line-chart"></i>
                                <p>Stats</p>
                            </a>
                        </li>

                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-gavel"></i>
                                <p class="hidden-md hidden-lg">
                                    Actions
                                    <b class="caret"></b>
                                </p>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="#">Create New Post</a></li>
                                <li><a href="#">Manage Something</a></li>
                                <li><a href="#">Do Nothing</a></li>
                                <li><a href="#">Submit to live</a></li>
                                <li class="divider"></li>
                                <li><a href="#">Another Action</a></li>
                            </ul>
                        </li>

                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-bell-o"></i>
                                <span class="notification">5</span>
                                <p class="hidden-md hidden-lg">
                                    Notifications
                                    <b class="caret"></b>
                                </p>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="#">Notification 1</a></li>
                                <li><a href="#">Notification 2</a></li>
                                <li><a href="#">Notification 3</a></li>
                                <li><a href="#">Notification 4</a></li>
                                <li><a href="#">Another notification</a></li>
                            </ul>
                        </li>

                        <li class="dropdown dropdown-with-icons">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-list"></i>
                                <p class="hidden-md hidden-lg">
                                    More
                                    <b class="caret"></b>
                                </p>
                            </a>
                            <ul class="dropdown-menu dropdown-with-icons">
                                <li>
                                    <a href="#">
                                        <i class="pe-7s-mail"></i> Messages
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <i class="pe-7s-help1"></i> Help Center
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <i class="pe-7s-tools"></i> Settings
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a href="#">
                                        <i class="pe-7s-lock"></i> Lock Screen
                                    </a>
                                </li>
                                <li>
                                    <a href="#" class="text-danger">
                                        <i class="pe-7s-close-circle"></i>
                                        Log out
                                    </a>
                                </li>
                            </ul>
                        </li>

                    </ul>
                </div>
            </div>
        </nav>
        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card ">
                            <div class="header">
                                <div class="btn-group" role="group">
                                    <button type="button" class="btn btn-default" value="entity">实物</button>
                                    <button type="button" class="btn btn-default" value="coupon">优惠券</button>
                                    <button type="button" class="btn btn-default" value="alipay">支付宝</button>
                                    <button type="button" class="btn btn-default" value="wechat">微信</button>
                                </div>
                            </div>
                            <div class="content">
                                <div class="row">
                                    <div class="col-md-4">
                                        放置图片
                                    </div>
                                    <div class="col-md-8">
                                        <div class="table-responsive">
                                            <form enctype="multipart/form-data" method="post">
                                                <input type="hidden" name="data[prize][type_code]"
                                                       value="{{$type_code}}">
                                                <table class="table">
                                                    <tbody>
                                                    <tr>
                                                        <td>奖品名称</td>
                                                        <td><input type="text" name="data[prize][name]" value="{{@$prize['prize']['name']}}"></td>
                                                    </tr>
                                                    <tr>
                                                        <td>有效时间</td>
                                                        <td>
                                                            <input type="datetime" name="data[prize][expired_start]" value="{{@$prize['prize']['expired_start']}}">
                                                            <input type="datetime" name="data[prize][expired_end]" value="{{@$prize['prize']['expired_end']}}">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>奖品库存</td>
                                                        <td><input type="number" name="data[prize][stock_number]" value="{{@$prize['prize']['stock_number']}}"></td>
                                                    </tr>
                                                    <tr>
                                                        <td>兑奖方式</td>
                                                        <td>
                                                            <input type="radio" name="data[prize][exchange_method]"
                                                                   value="0">现场兑奖
                                                            <input type="radio" name="data[prize][exchange_method]"
                                                                   value="1">邮寄发放
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>现场兑奖地址</td>
                                                        <td><input type="text" name="data[prize][exchange_address]" value="{{@$prize['prize']['exchange_address']}}">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>奖品标签</td>
                                                        <td><input type="text" name="data[prize][tag]" value="{{@$prize['prize']['tag']}}"></td>
                                                    </tr>
                                                    <tr>
                                                        <td>更换背景</td>
                                                        <td><input type="file" name="data[prize][background_image]" value="{{@$prize['prize']['background_image']}}">
                                                        </td>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                                <div class="card">
                                                    <div class="header">Panel heading without title</div>
                                                    <div class="content">
                                                        <table class="table">
                                                            <tbody>
                                                            <tr>
                                                                <td>赞助商信息</td>
                                                                <td>
                                                                    <input type="text" name="data[sponsor][name][]">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>曝光率</td>
                                                                <td>
                                                                    <input type="number"
                                                                           name="data[sponsor][percent][]">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>更换背景</td>
                                                                <td>
                                                                    <input type="file" name="data[sponsor][logo][]">
                                                                </td>
                                                            </tr>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </div>
                                                <div class="btn-group" role="group">
                                                    <button type="submit" class="btn btn-default">保存</button>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    @component('components.web.setting')@endcomponent
@endsection
@section('style')
    <style>
        .dropdown-menu:before, .dropdown-menu:after {
            display: none;
        }
    </style>
@endsection()
